Flajolet-Martin algorithm

Flajolet-Martin (simplified):

Lemma:

DD distinct items in our stream, 𝔼[S]=1D+1\mathbb{E}[S] = \frac{1}{D+1}

proof:

⚠️ add to notes here later

Lemma:

Var[S]=𝔼[S2]𝔼[S]2=2(D+1)(D+2)1(D+1)21(D+1)2\mathrm{Var}[S] = \mathbb{E}[S^2]-\mathbb{E}[S]^2 = \frac{2}{(D+1)(D+2)}-\frac{1}{(D+1)^2} \leq \frac{1}{(D+1)^2}

proof:

⚠️ add to notes here later #incomplete


References: